package chinatelecom.feilong.framework.web.sys.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 
* @Description: 登陆token 
* @author JRed bravecatking@gmail.com 
* @date 2015年8月26日 下午4:27:48
 */
public class LoginToken extends UsernamePasswordToken {
    /** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = 5378632991448068956L;
	//验证码字符串      
	private String captcha;
	//登录类型 0：内部登录 1：外部接口1登录
	private  Integer loginType  = 0;

	//数据的存储对象
	private Object data;

	public LoginToken (String username, char[] password,  
            boolean rememberMe, String host, String captcha){
		super(username, password, rememberMe, host);
		this.captcha=captcha;
	}

	public LoginToken(String username, char[] password, boolean rememberMe, String host, String captcha, Integer loginType) {
		super(username, password, rememberMe, host);
		this.captcha = captcha;
		this.loginType = loginType;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}


	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Integer getLoginType() {
		return loginType;
	}

	public void setLoginType(Integer loginType) {
		this.loginType = loginType;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
}
